package com.zx.deploy.service;

import java.util.List;

import com.zx.deploy.config.DeployConfig;
import com.zx.deploy.model.SpeedProgress;

/**
 * 数据库操作
 * @author jbyu
 *
 */
public interface DataBaseService {
	
	
	/**
	 * 备份数据库
	 */
	public SpeedProgress backupDatabase(DeployConfig config);
	
	/**
	 * 回滚数据库
	 * @param callBackSql
	 * @return
	 */
	public SpeedProgress rollbackDatabase(String callBackSql,DeployConfig config);
	
	
	
	/**
	 * 执行脚本
	 */
	public void executeSqlIgnoreError(DeployConfig config,SpeedProgress speed);
	
	/**
	 * 执行脚本
	 */
	public void executeSql(DeployConfig config, SpeedProgress speed);

}
